package com.chuangshi.core.vote.player.entity;

import com.chuangshi.core.kit.Entity;
import com.chuangshi.core.kit.Request;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;


/**
 * 人员信息
 *
 * @author ggliming
 * @date 2019-02-21
 */
@Component
@Document(collection = "player_info")
public class Player extends Entity {

    public Player() {

    }

    public Player(Request request) {
        this.copy(request);
    }

    /**
     * 人员编号
     */
    @Id
    @Field
    private String playerId;

    /**
     * 头像编号
     */
    @Field
    private String playerImageId;

    /**
     * 头像
     */
    @Field
    private String playerImagePath;

    /**
     * 岗位编号
     */
    @Field
    private String positionId;

    /**
     * 岗位名称
     */
    @Field
    private String positionName;

    /**
     * 序号
     */
    @Field
    private Integer playerNum;

    /**
     * 姓名
     */
    @Field
    private String playerName;

    /**
     * 小区
     */
    @Field
    private String playerAddress;

    /**
     * 经销商
     */
    @Field
    private String playerAgency;

    /**
     * 投票数
     */
    @Field
    private Integer playerVoteNum;


    public String getPlayerId() {
        return playerId;
    }

    public void setPlayerId(String playerId) {
        this.playerId = playerId;
    }

    public String getPlayerImageId() {
        return playerImageId;
    }

    public void setPlayerImageId(String playerImageId) {
        this.playerImageId = playerImageId;
    }

    public String getPlayerImagePath() {
        return playerImagePath;
    }

    public void setPlayerImagePath(String playerImagePath) {
        this.playerImagePath = playerImagePath;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Integer getPlayerNum() {
        return playerNum;
    }

    public void setPlayerNum(Integer playerNum) {
        this.playerNum = playerNum;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public String getPlayerAddress() {
        return playerAddress;
    }

    public void setPlayerAddress(String playerAddress) {
        this.playerAddress = playerAddress;
    }

    public String getPlayerAgency() {
        return playerAgency;
    }

    public void setPlayerAgency(String playerAgency) {
        this.playerAgency = playerAgency;
    }

    public Integer getPlayerVoteNum() {
        return playerVoteNum;
    }

    public void setPlayerVoteNum(Integer playerVoteNum) {
        this.playerVoteNum = playerVoteNum;
    }

}